package com.study.designpattern.decorator;

/**
 * <p>抽象的装饰者</p>
 *
 * @author chentao
 * @version v 0.1 2022/9/7 14:28
 */
public abstract class Decorator extends Component {
    private Component component = null;

    public Decorator(Component component) {
        this.component = component;
    }
    @Override
    public void operate(){
        this.component.operate();
    }
}
